import Home from '../pages/Home';
import Login from '../pages/Login';
import List from '../pages/List';
import Detail from '../pages/Detail';
const routes=[
  {
    from:'/',
    to:'/home'
  },{
    path:'/home',
    component:Home
  },{
    path:'/login',
    component:Login
  },
  {
    path:'/list',
    component:List,
    meta:{
      needLogin:true
    }
  },
  {
    path:'/detail/:id',
    component:Detail,
    meta:{
      needLogin:true
    }
  }
];

export default routes;